/**
 * 
 */
package org.aman.shiro.service;

import java.util.HashMap;
import java.util.Map;

import org.aman.shiro.entity.User;

/**
 * @Copyright: 本内容仅限于重庆爱赢科技有限公司内部使用，禁止转发. 
 * @Author: daijiangguo 2014-6-11 上午11:26:17 
 * @Version: $Id$
 * @Desc: <p></p>
 */
public class UserManager {

    public Map<String, User> userDb = new HashMap<String, User>();
    {
        userDb.put("aman0", new User("001", "aman0", "0"));
        userDb.put("aman1", new User("002", "aman1", "1"));
        userDb.put("aman2", new User("003", "aman2", "2"));
        userDb.put("aman3", new User("004", "aman3", "3"));
        userDb.put("aman4", new User("005", "aman4", "4"));
        userDb.put("aman5", new User("006", "aman5", "5"));
        userDb.put("aman6", new User("007", "aman6", "6"));
        userDb.put("aman7", new User("008", "aman7", "7"));
        userDb.put("aman8", new User("009", "aman8", "8"));
        userDb.put("aman9", new User("010", "aman9", "9"));
    }
    
    public User findUserByUserName(String userName){
        return userDb.get(userName);
    }
}
